//
//  MenuCell.m
//  血氧宝
//
//  Created by YFB on 15/4/7.
//  Copyright (c) 2015年 上海贝瑞电子科技. All rights reserved.
//

#import "MenuCell.h"
#import "FitHeader.h"
@implementation MenuCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _leftView = [[UIImageView alloc]initWithFrame:CGRectMake(54 *FitWidth, 28 *FitHeight, 24 *FitWidth, 24 *FitHeight)];
        [self.contentView addSubview:_leftView];
        _myTitleLabel = [[UILabel alloc]initWithFrame:CGRectMake(_leftView.frame.origin.x + _leftView.frame.size.width + 20 *FitWidth, 25 *FitHeight, 80 *FitWidth, 30 *FitHeight)];
        _myTitleLabel.textColor = [UIColor whiteColor];
        _myTitleLabel.textAlignment = 0;
        _myTitleLabel.font = [UIFont fontWithName:@"HiraginoSansGB-W3" size:18];
        [self.contentView addSubview:_myTitleLabel];
        
        _lineView = [[UIImageView alloc]initWithFrame:CGRectMake(0, _leftView.frame.origin.y + _leftView.frame.size.height + 27 *FitHeight, 170 *FitWidth, 1 *FitHeight)];
        _lineView.alpha = 0.65;
      //  _lineView.image = [UIImage imageNamed:@"navigation005@2x"];
        [self.contentView addSubview:_lineView];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    [self.imageView setFrame:CGRectMake(54 *FitWidth, 28 *FitHeight, 24 *FitWidth, 24 *FitHeight)];
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
